﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NumberParser
{
    public class Square
    {
        private char character;
        private bool filled;

        public Square(char character, bool filled)
        {
            this.character = character;
            this.filled = filled;
        }

        public char Character
        {
            get { return character; }
        }

        public bool Filled
        {
            get { return filled; }
        }

        public bool Matches(Square squareToMatch)
        {
            return this.Character == squareToMatch.Character && this.Filled == squareToMatch.Filled;
        }

        public override string ToString()
        {
            return this.filled ? this.character.ToString() : " ";
        }
    }
}
